import request from '@/utils/request'

// 查询风险预测列表
export function listRisk(query) {
  return request({
    url: '/system/risk/list',
    method: 'get',
    params: query
  })
}

// 查询风险预测详细
export function getRisk(forecastRiskId) {
  return request({
    url: '/system/risk/' + forecastRiskId,
    method: 'get'
  })
}

// 新增风险预测
export function addRisk(data) {
  return request({
    url: '/system/risk',
    method: 'post',
    data: data
  })
}

// 修改风险预测
export function updateRisk(data) {
  return request({
    url: '/system/risk',
    method: 'put',
    data: data
  })
}

// 删除风险预测
export function delRisk(forecastRiskId) {
  return request({
    url: '/system/risk/' + forecastRiskId,
    method: 'delete'
  })
}
